﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Sim.Company.JobTitle;
using BCDto.Sim.Admin.Admin;
using BCDto.Sim.Company.JobTitle;
using BCEntity.Sim.Company.JobTitle;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Sim.Company.JobTitle
{
	/// <summary>
	/// 职位
	/// </summary>
	public interface IJobTitleService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="jobTitleId">职位Id</param>
		bool Exists(int jobTitleId);
		/// <summary>
		/// 添加职位
		/// </summary>
		/// <param name="requestDto">职位信息</param>
		/// <param name="adminDto"></param>
		JobTitleDto Add(JobTitleRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新职位
		/// </summary>
		/// <param name="putDto">职位信息</param>
		/// <param name="adminDto"></param>
		JobTitleDto Update(JobTitlePutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除职位
		/// </summary>
		/// <param name="jobTitleId">职位Id</param>
		bool Delete(int jobTitleId);
		/// <summary>
		/// 获取职位
		/// </summary>
		/// <param name="jobTitleId">职位Id</param>
		JobTitleDto Get(int jobTitleId);
		/// <summary>
		/// 获取职位列表
		/// </summary>
		IEnumerable<JobTitleDto> GetList();
		/// <summary>
		/// 获取职位分页列表
		/// </summary>
		/// <param name="jobTitle">职位名称</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">职位每页数据条数</param>
		PageableList<JobTitleDto> Query(string jobTitle,bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用职位
		/// </summary>
		/// <param name="jobTitleId">职位Id</param>
		bool Enabled(int jobTitleId);
		/// <summary>
		/// 禁用职位
		/// </summary>
		/// <param name="jobTitleId">职位Id</param>
		bool Disabled(int jobTitleId);
		#endregion  成员方法
	}
}